export class Variable { // 存放所有全局变量
    constructor() {
        if (Variable.instance) {
            throw new Error('error use getInstance().');
        } else {
            Variable.instance = this;
        }
    }
    private static instance: Variable = new Variable();


    // 跳转信息
    public targetObject = {
        forward: {},
        path: '',
        bat: []
    };
    public static getInstance(): Variable {
        return Variable.instance;
    }
}
